//
//  YTCollectionViewCell.m
//  DayByDay
//
//  Created by dllo on 16/5/19.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "YTCollectionViewCell.h"

@interface YTCollectionViewCell ()

@property (nonatomic, strong)UILabel *nameLabel;
@property (nonatomic, strong)UIImageView *imageV;


@end

@implementation YTCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    
    return self;
    
}

- (void)createView {
    self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, WIDTH - 70, 30)];
    self.nameLabel.center = self.contentView.center;
    self.imageV = [[UIImageView alloc] initWithFrame:CGRectMake(WIDTH - 40, 10, 30, 30)];
    self.imageV.image = [UIImage imageNamed:@"global_icon_list_enter"];
    [self.contentView addSubview:self.imageV];
    [self.contentView addSubview:self.nameLabel];
}


-(void)setSingerModel:(SingerClassifyGroupModel *)singerModel
{
    _singerModel = singerModel;
//    NSLog(@"%@",singerModel.itemName);
    self.nameLabel.text = _singerModel.itemName;
//    NSLog(@"====%@",_singerModel.itemName);
}


@end
